package com.common.model.exception;

/**
 * 描述：
 * 数据没发现异常
 * @author xianggj
 * @Date 2021/9/2 17:35
 **/
public class ServiceException extends RuntimeException {

    private String errorMsg;

    public ServiceException(String errorMsg) {
        super("系统错误：");
        this.errorMsg = errorMsg;
    }

    @Override
    public String getMessage() {
        return  errorMsg;
    }
}
